<template>
  <div class="app">
    <button @click="openDialog">弹出对话框</button>
    <BaseDialog :isShow="isShow" @closeDialog="close"></BaseDialog>
  </div>
</template>

<script>
import BaseDialog from './components/BaseDialog.vue'
export default {
  data() {
    return {
      isShow: false,
    }
  },
  methods: {
    openDialog() {
      this.isShow = true
    },
    close(val) {
      this.isShow = val
    },
  },
  components: {
    BaseDialog,
  },
}
</script>

<style>
</style>